package com.coolsummer.abstracts;

/**
 * @author coolsummer
 * @describe 限流抽象类
 * @date 2019/11/19 17:03
 */
public abstract class Limiter {

    /**
     * 接口的qps
     */
    public double qps;

    public Limiter(double qps) {
        this.qps = qps;
    }

    public abstract boolean tryAcquire();
}
